package com.lyh.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.lyh.common.annotation.Excel;
import com.lyh.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户预约报单信息对象 lyh_member_purchase_info
 *
 * @author ruoyi
 * @date 2023-04-27
 */
@Data
@TableName("lyh_member_purchase_info")
public class MemberPurchaseInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 消耗资产通证数量 */
    @Excel(name = "消耗资产通证数量")
    private BigDecimal assetEvidenceNum;

    /** 消耗消费券数量 */
    @Excel(name = "消耗消费券数量")
    private BigDecimal consumerCouponNum;


    /** 资产通证id */
    @Excel(name = "资产通证id")
    private Long assetEvidenceId;

    /** 下次结算时间 */
    @Excel(name = "下次结算时间")
    private String intervalNextTime;

    /** 场次 */
    @Excel(name = "场次")
    private Integer timeInterval;

    @Excel(name = "状态  0 待审核 1审核通过 2 预约失败 3报单完成")
    private Integer status;

    //预估收益
    private BigDecimal maybeIncome;

    /** 剩余每天待返佣金额 */
    @Excel(name = "剩余每天待返佣金额")
    private BigDecimal residueRebate;

    private Long auditId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auditTime;

    private BigDecimal residueAssetEvidence;
}
